package com.css.fxfzaqbz.modules.assess.repository;

import com.css.fxfzaqbz.modules.assess.entity.CasAndUrgen;
import com.css.fxfzaqbz.modules.assess.entity.CasualtiesEntity;
import com.css.fxfzaqbz.modules.assess.vo.CasVo;
import com.css.fxfzaqbz.modules.assess2.entity.TaskContent;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author y1fan
 * @create 2022-09-13 14:57
 */
public interface CasualtiesRepository {


    CasualtiesEntity saveCasualties(CasualtiesEntity casualtiesEntity);

    List<CasualtiesEntity> getAllCasualties(String id);

    CasualtiesEntity getCasualtiesById(String id);

    void deleteCasualties(String id, String userID, Timestamp currentTimestamp);

    List<CasualtiesEntity> getCasualtiesByType(String scType, String scRelation);

    CasualtiesEntity updateCasualties(CasualtiesEntity casualtiesEntity, String scId);

    CasualtiesEntity updateCasualtiesById(CasualtiesEntity casualtiesEntity);

    List<TaskContent> getAllCasualties1(String id);

    List<CasualtiesEntity> getAllCasualtiesTwo(String id);

    void firstSubmitCasualties(String id, String userID, Timestamp currentTimestamp, String scFileDescribe);

    void firstSubmitCasualties2(String id, String userID, Timestamp currentTimestamp);

    CasualtiesEntity casualtiesIfRepetition(CasualtiesEntity casualtiesEntity);

    void addCasualtiesDisaster(List<String> ids, String describe);

    void removeCasualtiesDisaster(CasualtiesEntity casualtiesById);


    void secondSubmitCasualties(List<String> ids, String mobilePhone, String userName,Timestamp currentTimestamp);


    List<CasualtiesEntity> getCasualtiesByIaId(String id);

    List<CasualtiesEntity> getCasByIaIdAndType(String iaId, String rkfbt);

    List<CasAndUrgen> getAll(CasVo vo);

    void submit(CasVo vo);

    void remove(CasVo vo);
}
